Integrand size = 23, antiderivative size = 102 \[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=\frac {3}{8} a^2 c x \sqrt {a+b x} \sqrt {a c-b c x}+\frac {1}{4} x (a+b x)^{3/2} (a c-b c x)^{3/2}+\frac {3 a^4 c^{3/2} \arctan \left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {c (a-b x)}}\right )}{4 b} \]
1/4*x*(b*x+a)^(3/2)*(-b*c*x+a*c)^(3/2)+3/4*a^4*c^(3/2)*arctan(c^(1/2)*(b*x +a)^(1/2)/(c*(-b*x+a))^(1/2))/b+3/8*a^2*c*x*(b*x+a)^(1/2)*(-b*c*x+a*c)^(1/ 2)
Time = 0.13 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.90 \[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=\frac {(c (a-b x))^{3/2} \left (b x \sqrt {a-b x} \sqrt {a+b x} \left (5 a^2-2 b^2 x^2\right )+6 a^4 \arctan \left (\frac {\sqrt {a+b x}}{\sqrt {a-b x}}\right )\right )}{8 b (a-b x)^{3/2}} \]
((c*(a - b*x))^(3/2)*(b*x*Sqrt[a - b*x]*Sqrt[a + b*x]*(5*a^2 - 2*b^2*x^2) + 6*a^4*ArcTan[Sqrt[a + b*x]/Sqrt[a - b*x]]))/(8*b*(a - b*x)^(3/2))
Time = 0.19 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.03, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {40, 40, 45, 218}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx\) |
\(\Big \downarrow \) 40 |
\(\displaystyle \frac {3}{4} a^2 c \int \sqrt {a+b x} \sqrt {a c-b c x}dx+\frac {1}{4} x (a+b x)^{3/2} (a c-b c x)^{3/2}\) |
\(\Big \downarrow \) 40 |
\(\displaystyle \frac {3}{4} a^2 c \left (\frac {1}{2} a^2 c \int \frac {1}{\sqrt {a+b x} \sqrt {a c-b c x}}dx+\frac {1}{2} x \sqrt {a+b x} \sqrt {a c-b c x}\right )+\frac {1}{4} x (a+b x)^{3/2} (a c-b c x)^{3/2}\) |
\(\Big \downarrow \) 45 |
\(\displaystyle \frac {3}{4} a^2 c \left (a^2 c \int \frac {1}{\frac {c (a+b x) b}{a c-b c x}+b}d\frac {\sqrt {a+b x}}{\sqrt {a c-b c x}}+\frac {1}{2} x \sqrt {a+b x} \sqrt {a c-b c x}\right )+\frac {1}{4} x (a+b x)^{3/2} (a c-b c x)^{3/2}\) |
\(\Big \downarrow \) 218 |
\(\displaystyle \frac {3}{4} a^2 c \left (\frac {a^2 \sqrt {c} \arctan \left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a c-b c x}}\right )}{b}+\frac {1}{2} x \sqrt {a+b x} \sqrt {a c-b c x}\right )+\frac {1}{4} x (a+b x)^{3/2} (a c-b c x)^{3/2}\) |
(x*(a + b*x)^(3/2)*(a*c - b*c*x)^(3/2))/4 + (3*a^2*c*((x*Sqrt[a + b*x]*Sqr t[a*c - b*c*x])/2 + (a^2*Sqrt[c]*ArcTan[(Sqrt[c]*Sqrt[a + b*x])/Sqrt[a*c - b*c*x]])/b))/4
3.12.46.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[x* (a + b*x)^m*((c + d*x)^m/(2*m + 1)), x] + Simp[2*a*c*(m/(2*m + 1)) Int[(a + b*x)^(m - 1)*(c + d*x)^(m - 1), x], x] /; FreeQ[{a, b, c, d}, x] && EqQ[ b*c + a*d, 0] && IGtQ[m + 1/2, 0]
Int[1/(Sqrt[(a_) + (b_.)*(x_)]*Sqrt[(c_) + (d_.)*(x_)]), x_Symbol] :> Simp[ 2 Subst[Int[1/(b - d*x^2), x], x, Sqrt[a + b*x]/Sqrt[c + d*x]], x] /; Fre eQ[{a, b, c, d}, x] && EqQ[b*c + a*d, 0] && !GtQ[c, 0]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/R t[a/b, 2]], x] /; FreeQ[{a, b}, x] && PosQ[a/b]
Time = 0.20 (sec) , antiderivative size = 125, normalized size of antiderivative = 1.23
method | result | size |
risch | \(\frac {x \left (-2 b^{2} x^{2}+5 a^{2}\right ) \left (-b x +a \right ) \sqrt {b x +a}\, c^{2}}{8 \sqrt {-c \left (b x -a \right )}}+\frac {3 a^{4} \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {-b^{2} c \,x^{2}+a^{2} c}}\right ) \sqrt {-\left (b x +a \right ) c \left (b x -a \right )}\, c^{2}}{8 \sqrt {b^{2} c}\, \sqrt {b x +a}\, \sqrt {-c \left (b x -a \right )}}\) | \(125\) |
default | \(-\frac {\left (b x +a \right )^{\frac {3}{2}} \left (-b c x +a c \right )^{\frac {5}{2}}}{4 b c}+\frac {3 a \left (-\frac {\sqrt {b x +a}\, \left (-b c x +a c \right )^{\frac {5}{2}}}{3 b c}+\frac {a \left (\frac {\left (-b c x +a c \right )^{\frac {3}{2}} \sqrt {b x +a}}{2 b}+\frac {3 a c \left (\frac {\sqrt {-b c x +a c}\, \sqrt {b x +a}}{b}+\frac {a c \sqrt {\left (b x +a \right ) \left (-b c x +a c \right )}\, \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {-b^{2} c \,x^{2}+a^{2} c}}\right )}{\sqrt {-b c x +a c}\, \sqrt {b x +a}\, \sqrt {b^{2} c}}\right )}{2}\right )}{3}\right )}{4}\) | \(184\) |
1/8*x*(-2*b^2*x^2+5*a^2)*(-b*x+a)*(b*x+a)^(1/2)/(-c*(b*x-a))^(1/2)*c^2+3/8 *a^4/(b^2*c)^(1/2)*arctan((b^2*c)^(1/2)*x/(-b^2*c*x^2+a^2*c)^(1/2))*(-(b*x +a)*c*(b*x-a))^(1/2)/(b*x+a)^(1/2)/(-c*(b*x-a))^(1/2)*c^2
Time = 0.25 (sec) , antiderivative size = 193, normalized size of antiderivative = 1.89 \[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=\left [\frac {3 \, a^{4} \sqrt {-c} c \log \left (2 \, b^{2} c x^{2} + 2 \, \sqrt {-b c x + a c} \sqrt {b x + a} b \sqrt {-c} x - a^{2} c\right ) - 2 \, {\left (2 \, b^{3} c x^{3} - 5 \, a^{2} b c x\right )} \sqrt {-b c x + a c} \sqrt {b x + a}}{16 \, b}, -\frac {3 \, a^{4} c^{\frac {3}{2}} \arctan \left (\frac {\sqrt {-b c x + a c} \sqrt {b x + a} b \sqrt {c} x}{b^{2} c x^{2} - a^{2} c}\right ) + {\left (2 \, b^{3} c x^{3} - 5 \, a^{2} b c x\right )} \sqrt {-b c x + a c} \sqrt {b x + a}}{8 \, b}\right ] \]
[1/16*(3*a^4*sqrt(-c)*c*log(2*b^2*c*x^2 + 2*sqrt(-b*c*x + a*c)*sqrt(b*x + a)*b*sqrt(-c)*x - a^2*c) - 2*(2*b^3*c*x^3 - 5*a^2*b*c*x)*sqrt(-b*c*x + a*c )*sqrt(b*x + a))/b, -1/8*(3*a^4*c^(3/2)*arctan(sqrt(-b*c*x + a*c)*sqrt(b*x + a)*b*sqrt(c)*x/(b^2*c*x^2 - a^2*c)) + (2*b^3*c*x^3 - 5*a^2*b*c*x)*sqrt( -b*c*x + a*c)*sqrt(b*x + a))/b]
\[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=\int \left (- c \left (- a + b x\right )\right )^{\frac {3}{2}} \left (a + b x\right )^{\frac {3}{2}}\, dx \]
Time = 0.30 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.62 \[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=\frac {3 \, a^{4} c^{\frac {3}{2}} \arcsin \left (\frac {b x}{a}\right )}{8 \, b} + \frac {3}{8} \, \sqrt {-b^{2} c x^{2} + a^{2} c} a^{2} c x + \frac {1}{4} \, {\left (-b^{2} c x^{2} + a^{2} c\right )}^{\frac {3}{2}} x \]
3/8*a^4*c^(3/2)*arcsin(b*x/a)/b + 3/8*sqrt(-b^2*c*x^2 + a^2*c)*a^2*c*x + 1 /4*(-b^2*c*x^2 + a^2*c)^(3/2)*x
Leaf count of result is larger than twice the leaf count of optimal. 354 vs. \(2 (82) = 164\).
Time = 0.41 (sec) , antiderivative size = 354, normalized size of antiderivative = 3.47 \[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=-\frac {24 \, {\left (\frac {2 \, a c \log \left ({\left | -\sqrt {b x + a} \sqrt {-c} + \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \right |}\right )}{\sqrt {-c}} - \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \sqrt {b x + a}\right )} a^{3} c - 12 \, {\left (\frac {2 \, a^{2} c \log \left ({\left | -\sqrt {b x + a} \sqrt {-c} + \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \right |}\right )}{\sqrt {-c}} + \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \sqrt {b x + a} {\left (b x - 2 \, a\right )}\right )} a^{2} c - 4 \, {\left (\frac {6 \, a^{3} c \log \left ({\left | -\sqrt {b x + a} \sqrt {-c} + \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \right |}\right )}{\sqrt {-c}} - {\left ({\left (2 \, b x - 5 \, a\right )} {\left (b x + a\right )} + 9 \, a^{2}\right )} \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \sqrt {b x + a}\right )} a c + {\left (\frac {18 \, a^{4} c \log \left ({\left | -\sqrt {b x + a} \sqrt {-c} + \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \right |}\right )}{\sqrt {-c}} - {\left (39 \, a^{3} - {\left (2 \, {\left (3 \, b x - 10 \, a\right )} {\left (b x + a\right )} + 43 \, a^{2}\right )} {\left (b x + a\right )}\right )} \sqrt {-{\left (b x + a\right )} c + 2 \, a c} \sqrt {b x + a}\right )} c}{24 \, b} \]
-1/24*(24*(2*a*c*log(abs(-sqrt(b*x + a)*sqrt(-c) + sqrt(-(b*x + a)*c + 2*a *c)))/sqrt(-c) - sqrt(-(b*x + a)*c + 2*a*c)*sqrt(b*x + a))*a^3*c - 12*(2*a ^2*c*log(abs(-sqrt(b*x + a)*sqrt(-c) + sqrt(-(b*x + a)*c + 2*a*c)))/sqrt(- c) + sqrt(-(b*x + a)*c + 2*a*c)*sqrt(b*x + a)*(b*x - 2*a))*a^2*c - 4*(6*a^ 3*c*log(abs(-sqrt(b*x + a)*sqrt(-c) + sqrt(-(b*x + a)*c + 2*a*c)))/sqrt(-c ) - ((2*b*x - 5*a)*(b*x + a) + 9*a^2)*sqrt(-(b*x + a)*c + 2*a*c)*sqrt(b*x + a))*a*c + (18*a^4*c*log(abs(-sqrt(b*x + a)*sqrt(-c) + sqrt(-(b*x + a)*c + 2*a*c)))/sqrt(-c) - (39*a^3 - (2*(3*b*x - 10*a)*(b*x + a) + 43*a^2)*(b*x + a))*sqrt(-(b*x + a)*c + 2*a*c)*sqrt(b*x + a))*c)/b
Timed out. \[ \int (a+b x)^{3/2} (a c-b c x)^{3/2} \, dx=\int {\left (a\,c-b\,c\,x\right )}^{3/2}\,{\left (a+b\,x\right )}^{3/2} \,d x \]